package com.yunsc.store.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.yunsc.common.validator.ValidationGroups;
import com.yunsc.store.entity.YunscCouponEntity;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @version: 1.0
 * @Author: adan
 * @description:
 * @date: 2024-06-03 19:01
 */
@Data
public class CouponParamDTO {
    @JsonProperty("couponId")
    @NotNull(message = "couponId不能为空", groups = ValidationGroups.Update.class)
    @NotNull(message = "couponId不能为空", groups = ValidationGroups.Delete.class)
    private Integer couponId;
    private YunscCouponEntity form;

    private Integer page = 1;
    @JsonProperty("pageSize")
    private Integer pageSize = 15;
    private String search;
}
